import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getAdminuser = {
  getAdminuserList(params) {
    return axios.post(`${base.bd}/admin/admin/lists`, qs.stringify(params));
  },
  getInfo(params) {
    return axios.post(`${base.bd}/admin/admin/edit`, qs.stringify(params));
  },
  myUpdate(params) {
    return axios.post(`${base.bd}/admin/admin/saveedit`, qs.stringify(params));
  },
  mySave(params) {
    return axios.post(`${base.bd}/admin/admin/saveadd`, qs.stringify(params));
  },
  myDelete(params) {
    return axios.post(`${base.bd}/admin/admin/del`, qs.stringify(params));
  },
  getRoleOption(params){
    return axios.post(`${base.bd}/admin/role/option`, qs.stringify(params));
  },
  myChangeShow(params) {
    return axios.post(`${base.bd}/admin/admin/show`, qs.stringify(params));
  },
  adminLog(params) {
    return axios.post(`${base.bd}/admin/log/lists`, qs.stringify(params));
  },
  getRewardList(params) {
    return axios.post(`${base.bd}/admin/reward/lists`, qs.stringify(params));
  },
  changeRewardShow(params) {
    return axios.post(`${base.bd}/admin/reward/show`, qs.stringify(params));
  },
  getRewardTypes(params) {
    return axios.post(`${base.bd}/admin/reward/option`, qs.stringify(params));
  },
  rewardSave(params) {
    return axios.post(`${base.bd}/admin/reward/saveadd`, qs.stringify(params));
  },
  rewardUpdate(params) {
    return axios.post(`${base.bd}/admin/reward/saveedit`, qs.stringify(params));
  },
  getRewardInfo(params) {
    return axios.post(`${base.bd}/admin/reward/edit`, qs.stringify(params));
  },
  RewardDelete(params) {
    return axios.post(`${base.bd}/admin/reward/del`, qs.stringify(params));
  },
  getRoleList(params){
    return axios.post(`${base.bd}/admin/role/lists`, qs.stringify(params));
  },
  RoleDelete(params) {
    return axios.post(`${base.bd}/admin/role/del`, qs.stringify(params));
  },
  getSecondMenu(params) {
    return axios.post(
      `${base.bd}/admin/menu/second_menu`,
      qs.stringify(params)
    );
  },
  roleSave(params) {
    return axios.post(`${base.bd}/admin/role/saveadd`, qs.stringify(params));
  },
  getRoleInfo(params) {
    return axios.post(`${base.bd}/admin/role/edit`, qs.stringify(params));
  },
  roleUpdate(params) {
    return axios.post(`${base.bd}/admin/role/saveedit`, qs.stringify(params));
  },
  findmenuid(params) {
    return axios.post(`${base.bd}/admin/role/findmenuid`, qs.stringify(params));
  },
  changeAdminPass(params) {
    return axios.post(`${base.bd}/admin/admin/change_password`, qs.stringify(params));
  },

  getPluginList(params){
    return axios.post(`${base.bd}/admin/plugin/lists_plus`, qs.stringify(params));
  },
  getopen(params){
    return axios.post(`${base.bd}/admin/plugin/open`, qs.stringify(params));
  },
  PluginDelete(params){
    return axios.post(`${base.bd}/admin/plugin/del`, qs.stringify(params));
  },
  PluginDetail(params){
    return axios.post(`${base.bd}/admin/plugin/edit`, qs.stringify(params));
  },
  pluginSaveEdit(params){
    return axios.post(`${base.bd}/admin/plugin/saveedit`, qs.stringify(params));
  },
  pluginSaveAdd(params){
    return axios.post(`${base.bd}/admin/plugin/saveadd`, qs.stringify(params));
  },
  getPluginCateOption(params){
    return axios.post(`${base.bd}/admin/plugin/cate_option`, qs.stringify(params));
  },
  myChangeservice(params) {
    return axios.post(`${base.bd}/admin/admin/service`, qs.stringify(params));
  },
  IsSendSmS(params){
    return axios.post(`${base.bd}/admin/reward/sms`, qs.stringify(params));
  },
  change_notice(params) {
    return axios.post(`${base.bd}/admin/admin/notice`, qs.stringify(params));
  },
  //设置后台管理员的im和用户im一致
  setAdminIm(params) {
    return axios.post(`${base.bd}/admin/admin/set_im`, qs.stringify(params));
  },

};
export default getAdminuser;
